import { IsNotEmpty, IsString, IsNumber } from 'class-validator';

export class UpdateAddressDto {
  @IsString()
  @IsNotEmpty({ message: '省份必填' })
  province: string;

  @IsString()
  @IsNotEmpty({ message: '城市必填' })
  city: string;

  @IsString()
  @IsNotEmpty({ message: '区域必填' })
  area: string;

  @IsString()
  @IsNotEmpty({ message: '详细地址必填' })
  detailed: string;
}